package com.littleken.product.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@DynamicUpdate

@Data // @Data = @Getter + @Setter + @ToString
@AllArgsConstructor
@NoArgsConstructor
/**
 * 商品实体类
 */
public class ProductInfo {

    @Id
    private String productId;

    private String productName;

    private BigDecimal productPrice;
    //库存
    private Integer productStock;
    //描述
    private String productDescription;
    //小图链接
    private String productIcon;
    //状态 0正常 1下架
    private Integer productStatus;

    private Integer categoryType;

    private Date createTime;

    private Date updateTime;


}